package com.h.forum.pojo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_user")
public class User {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String userName;

    @JsonIgnore // 不参与JSON序列化
    private String passWord;

    private String nickName;

    private String phoneNumb;

    private String email;

    private Byte gender;

    @JsonIgnore // 不参与JSON序列化
    private String salt;

    @JsonInclude(JsonInclude.Include.ALWAYS) //强制参加序列化
    private String avatarUrl;

    private Integer articleCount;

    private Byte isAdmin;

    private String remark;

    private Byte state;

    @JsonIgnore // 不参与JSON序列化
    private Byte deleteState;

    private Date createTime;

    private Date updateTime;


}